package com.uex.dev.manage.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.uex.dev.manage.admin.enums.ProblemStatusEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户问题反馈表
 * </p>
 *
 * @author wangchao
 * @since 2024-02-26
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_problem")
@JsonIgnoreProperties(value = "deleted", allowSetters = true)
public class ProblemPO extends Model<ProblemPO> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备ID
     */
    private Integer problemDevid;

    /**
     * 项目ID
     */
    private Integer problemPrjid;

    /**
     * 问题标题
     */
    private String problemTitle;

    /**
     * 问题详情
     */
    private String problemDesc;

    /**
     * 问题联系人及电话
     */
    private String problemContact;

    /**
     * 问题状态 问题提出，已确认，已解决，已验证/未解决
     */
    private ProblemStatusEnum problemStatus;

    /**
     * 问题创建时间
     */
    private LocalDateTime problemTime;

    /**
     * 问题更新时间
     */
    private LocalDateTime problemUpdtime;

    @TableLogic
    private Byte deleted;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
